﻿using System.Collections.Generic;

namespace IOA.MES.Web.Models
{
    /// <summary>
    /// 页面树对象
    /// </summary>
    public class TreeModel
    {
        /// <summary>
        /// 节点索引
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 节点标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 节点地址
        /// </summary>
        public string url { get; set; }

        /// <summary>
        /// 节点字段名
        /// </summary>
        public string field { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool @checked { get; set; }

        /// <summary>
        /// 是否默认展开
        /// </summary>
        public bool spread { get; set; } = true;

        public List<TreeModel> children { get; set; } = new List<TreeModel>();
    }
}
